How to convet DataTable to List on runtype with out existin class property [closed]
Posted
by
shamim
on Stack Overflow
See other posts from Stack Overflow
or by shamim
Published on 2012-12-06T17:27:52Z
Indexed on
2012/12/08
23:04 UTC
Read the original article
Hit count: 149
Work on VS2010 C#,Have one DataTable ,want to convert this DataTable to List
Suppose:
Table dt;
On run time want to create similar field from a datatable and fill fields in List.There is no existing class for list properties.
ListName=TableName
List property name=Table column name
List Property type=Table column type
List items=Table rows
Note: Recently work on EF.To fullfill my project requirement, need to give flexibility to use to input and execute ESQL at runtime .I don’t want to put this execute result on datatable or List ,want to put this result on list. List has no existing class and property,don’t want to convert DataTable on list Type:DataRow
If have any query please ask,Thanks in advanced.
© Stack Overflow or respective owner